<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>菜单栏</title>
    <script src="js/jquery.js" type="text/javascript"></script>
    <style>
	* {
		box-sizing: border-box;
	}
	:root {
		--accent-color: #45494E;
		--gradient-color: #FBFBFB;
	}
	a:focus {
		outline: none;
		position: relative;
	}
	a:focus:after {
		width: 50px;
	}
	a:after {
		content: "";
		background: #FBFBFB;
		position: absolute;
		bottom: 5px;
		left: 15px;
		height: 3px;
		width: 0;
		transition: .5s;
		transition-delay: .2s;
	}
	body {
		background: #45494E;
		font-family: "Varela Round", Nunito, Montserrat, sans-serif;
		margin: 0;
		padding: 0;
	}
	.menu {
		margin: 15px;
	}
	.menu > ol {
		list-style: none;
		margin: 30px 0;
		padding: 0;
	}
	.menu > ol > li {
		background: #3c3c3c;
		border-left: 5px solid var(--gradient-color);
		margin-bottom: 1px;
		position: relative;
		transition: .5s;
	}
	.menu > ol > li:nth-child(1) {
		--accent-color: #FDA085;
		--gradient-color: #F6D365;
	}
	.menu > ol > li:nth-child(2) {
		--accent-color: #BFF098;
		--gradient-color: #6FD6FF;
	}
	.menu > ol > li:nth-child(3) {
		--accent-color: #EA8D8D;
		--gradient-color: #A890FE;
	}
	.menu > ol > li:nth-child(4) {
		--accent-color: #D8B5FF;
		--gradient-color: #2ebb96;
	}
	.menu > ol > li:nth-child(5) {
		--accent-color: #C6EA8D;
		--gradient-color: #FE90AF;
	}
	.menu > ol > li a {
		color: #FBFBFB;
		display: block;
		padding: 15px;
		position: relative;
		text-decoration: none;
		z-index: 1;
	}
	.menu > ol > li a:not(:last-child):before {
		content: "\f078";
		font-family: fontAwesome;
		font-size: .75em;
		line-height: 50px;
		position: absolute;
		right: 25px;
		top: 0;
		bottom: 0;
		margin: auto;
		transition: .5s;
	}
	.menu > ol > li:focus,
	.menu > ol > li:focus-within,
	.menu > ol > li:hover {
		z-index: 100;
	}
	.menu > ol > li:focus:after,
	.menu > ol > li:focus-within:after,
	.menu > ol > li:hover:after {
		background: linear-gradient(to left, var(--accent-color), var(--gradient-color));
		max-width: 800px;
	}
	.menu > ol > li:focus .sub-menu,
	.menu > ol > li:focus-within .sub-menu {
		max-height: 500px;
	}
	.menu > ol > li:focus a:before,
	.menu > ol > li:focus-within a:before {
		transform: rotate(-180deg);
	}
	.menu > ol > li:after {
		background: #3c3c3c;
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: 0;
		bottom: 0;
		transition: .5s;
		max-width: 0;
		overflow: hidden;
	}
	.menu > ol .sub-menu {
		border-left: 1px solid #FBFBFB;
		margin-left: 22.5px;
		list-style: none;
		max-height: 0px;
		overflow: hidden;
		padding-left: 7.5px;
		position: relative;
		transition: .5s;
		z-index: 1;
	}
	.menu > ol .sub-menu li {
		font-size: .9em;
	}
	.menu > ol .sub-menu li:hover,
	.menu > ol .sub-menu li a:focus {
		background: rgba(60, 60, 60, 0.3);
	}
	.menu > ol .sub-menu li a:after {
		bottom: 5px;
		height: 1px;
	}
	.menu > ol .sub-menu li a:hover:after,
	.menu > ol .sub-menu li a:focus:after {
		width: 15px;
	}
	@media (min-width: 775px) {
		a:focus,
		a:hover {
			position: relative;
		}
		a:focus:after,
		a:hover:after {
			width: 50px;
		}
		a:after {
			left: 0;
			right: 0;
			margin: auto;
		}
		.menu {
			margin: 0;
			margin-top: 40vh;
		}
		.menu > ol {
			display: block;
			max-width: none;
			text-align: center;
		}
		.menu > ol > li {
			border-top: 5px solid var(--accent-color);
			border-left: 0;
			display: inline-block;
			margin-left: -5px;
			vertical-align: top;
			width: 150px;
		}
		.menu > ol > li:hover:after,
		.menu > ol > li:focus:after,
		.menu > ol > li:focus-within:after {
			background: linear-gradient(to bottom, var(--accent-color), var(--gradient-color));
			border-radius: 3px;
			top: -15px;
			bottom: -15px;
			left: -15px;
			right: -15px;
		}
		.menu > ol > li:hover .sub-menu,
		.menu > ol > li:focus .sub-menu,
		.menu > ol > li:focus-within .sub-menu {
			max-height: 750px;
		}
		.menu > ol > li:hover a:before {
			transform: rotate(-180deg);
		}
		.menu > ol .sub-menu {
			border-left: 0;
			margin: 15px -15px -15px;
			padding-left: 0;
		}
	}
	</style>
</head>
<body>
<nav class="menu">
    <ol>
        <li class="menu-item"><a href="http://127.0.0.1:8000/performance">业绩达标里程碑</a></li>
        <li class="menu-item"><a href="http://127.0.0.1:8000/order">物品订购次数 饼图</a></li>
        <li class="menu-item"><a href="http://127.0.0.1:8000/keyword">关键字 柱状图</a></li>
        <li class="menu-item"><a href="http://127.0.0.1:8000/polars">关键字 极坐标</a></li>
    </ol>
</nav>
</body>
</html>
